package com.hd.service.impl;

import com.hd.mapper.MemberMapper;
import com.hd.pojo.Member;
import com.hd.service.MemberService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by 1 on 2017/11/27.
 */
@Service("memberService")
@Transactional
public class MemberServiceImpl implements MemberService{

    @Resource
    private MemberMapper memberMapper;


    @Override
    public Member searchMember(Integer memberId) {
        return memberMapper.gerMemberByMemberId(memberId);
    }
}


